<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="${pageContext.request.contextPath }/resource/js/lib/zeptojs/zepto.min.js"></script>
<title>上传测试页面</title>
<script type="text/javascript">  
    i = 1;  
    $(function(){  
        $("#btn_add1").click(function(){  
            document.getElementById("newUpload1").innerHTML+='<div id="div_'+i+'"><input  name="file" type="file"  /><input type="button" value="删除"  onclick="del_1('+i+')"/></div>';  
              i = i + 1;  
        });
    });
</script>
</head>
<body>
	<form action="${pageContext.request.contextPath }/upload" enctype="multipart/form-data" method="post">
	<h1>springMVC字节流输入上传文件</h1>   
        <div id="newUpload1">  
            <input type="file" name="file">  
        </div>  
          
        <input type="button" id="btn_add1" value="增加一行" >  
        <input type="submit" value="上传" >  
    </form>   
</body>
</html>